package com.onenine.app.request;

import com.onenine.app.model.ThirdPlatform;
import com.onenine.base.okhttp.BaseRequest;

/**
 * 微信登录
 */
public class WeiXinRequest extends BaseRequest {

    private String openId;
    private String nickName;
    private String province;
    private String city;
    private String headImgUrl;
    private String sex;
    private String birthday;

    public WeiXinRequest(ThirdPlatform weiXinInfo) {
        this.openId = weiXinInfo.getOpenId();
        this.nickName = weiXinInfo.getName();
        this.province = weiXinInfo.getProvince();
        this.city = weiXinInfo.getCity();
        this.headImgUrl = weiXinInfo.getIconurl();
        this.sex = weiXinInfo.getGender();
        this.birthday = weiXinInfo.getBirthday();
    }

    public String getOpenId() {
        return openId == null ? "" : openId;
    }

    public void setOpenId(String openId) {
        this.openId = openId;
    }

    public String getNickName() {
        return nickName == null ? "" : nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getProvince() {
        return province == null ? "" : province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getCity() {
        return city == null ? "" : city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getHeadImgUrl() {
        return headImgUrl == null ? "" : headImgUrl;
    }

    public void setHeadImgUrl(String headImgUrl) {
        this.headImgUrl = headImgUrl;
    }

    public String getSex() {
        return sex == null ? "" : sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getBirthday() {
        return birthday == null ? "" : birthday;
    }

    public void setBirthday(String birthday) {
        this.birthday = birthday;
    }
}
